package com.zxmr.fastjson.filter;

import com.alibaba.fastjson.serializer.PropertyFilter;
import com.zxmr.action.Request;

public class RequestOnlyIDSerializeFilter implements PropertyFilter{

	@Override
	public boolean apply(Object object, String name, Object value) {

		if(object instanceof Request)
		{
			if("id".equals(name))return true;
			return false;
		}
		return true;
	}

	
}
